﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;

namespace ASPNETPerformance.KeepAlive {
    /// <summary>
    /// Ping 的摘要说明
    /// </summary>
    public class Ping : IHttpHandler, IRequiresSessionState {

        public void ProcessRequest( HttpContext context ) {
            context.Session[ "KeepAlivePing" ] = DateTime.Now;
        }

        public bool IsReusable {
            get {
                return false;
            }
        }
    }
}